package com.just.resume_server.controller;

import com.just.resume_server.model.vo.User;
import com.just.resume_server.service.out.UserService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author : baibaiwucahng
 * @date : 2020/3/4  10:17
 */
@RestController
@RequestMapping("/api/v1/resume")
public class ResumeController {

    @Resource
    private UserService userService;

    @GetMapping("/test")
    public User test() {
        User user = new User();
        user.setId(1);
        user.setUserName("test");
        user.setPassword("lll");
        User login = userService.Login(user);
        return login;
    }
}
